package main

import "fmt"

//map的增删改操作
func main() {
	//增，修省略

	//删除
	m := make(map[string]string, 10)
	m["a"] = "hello"
	m["b"] = "world"
	fmt.Println(m)
	delete(m, "a")
	fmt.Println(m)

	//查找
	val, ok := m["b"]
	if ok {
		fmt.Println("m中有key=a的值=", val)
	}

	fmt.Println("asdf:[" + m["c"] + "]")
}
